import { MenuState } from "@/store/modules/auth"

export const prevMenus: MenuState[] = [
    {
        code: "dashboard",
        name: "仪表盘",
        path: "/dashboard",
        component: "Layout",
        visible: true,
        icon: "DashboardOutlined",
        children: [
            {
                code: "dashboard:workbench",
                name: "工作台",
                visible: true,
                path: "workbench",
                component: "/views/dashboard/workbench/Index.vue",
                meta: { affix: true }
            }
        ]
    }
]

export const postMenus: MenuState[] = [
    {
        code: "monitor",
        name: "系统监控",
        path: "/monitor",
        component: "Layout",
        visible: true,
        icon: "SecurityScanOutlined",
        meta: { permission: "*" },
        children: [
            {
                code: "monitor:server",
                name: "服务器运行监控",
                visible: true,
                path: "server",
                component: "/views/monitor/server/Index.vue"
            },
            {
                code: "monitor:druid",
                name: "Druid",
                visible: true,
                path: "druid",
                component: "/views/monitor/druid/Index.vue"
            },
            {
                code: "monitor:cache",
                name: "缓存监控",
                visible: true,
                path: "cache",
                component: "/views/monitor/cache/Index.vue"
            }
        ]
    }
]
